Public API doesn't need to be concerned with renderers. Worst case, they
can use NULL instead of the actual renderer.
<FILE>gtksnapshot</FILE>
<TITLE>GtkSnapshot</TITLE>
GtkSnapshot
-gtk_snapshot_get_renderer
gtk_snapshot_push
gtk_snapshot_push_node
gtk_snapshot_pop
}
static void
-gtk_icon_helper_ensure_texture (GtkIconHelper *self,
- GskRenderer *renderer)
+gtk_icon_helper_ensure_texture (GtkIconHelper *self)
{
cairo_surface_t *map;
int width, height, scale;
GtkCssStyle *style;
GskTexture *texture;
- gtk_icon_helper_ensure_texture (self, gtk_snapshot_get_renderer (snapshot));
+ gtk_icon_helper_ensure_texture (self);
texture = self->priv->texture;
if (texture == NULL)
return;
G_BEGIN_DECLS
-GDK_AVAILABLE_IN_3_90
-GskRenderer * gtk_snapshot_get_renderer (const GtkSnapshot *snapshot);
-
GDK_AVAILABLE_IN_3_90
void gtk_snapshot_push (GtkSnapshot *snapshot,
gboolean keep_coordinates,
...) G_GNUC_PRINTF (4, 5);
GskRenderNode * gtk_snapshot_finish (GtkSnapshot *state);
+GskRenderer * gtk_snapshot_get_renderer (const GtkSnapshot *snapshot);
+
G_END_DECLS
#endif /* __GTK_SNAPSHOT_PRIVATE_H__ */